package com.joven.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.joven.core.constant.enums.AccountType;
import com.joven.core.constant.enums.Yon;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author joven_wong
 * 2021/7/1 16:28
 */
@Data
@ToString
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class TblGoodsStore implements Serializable{
    public static final String ACCOUNT_NO = "account_no";
    public static final String STORE_NUM = "store_num";
    private static final long serialVersionUID = 4736827563078050187L;

    @TableId(type = IdType.AUTO) //主键自增 数据库中需要设置主键自增
    private Long id;
    private String accountNo;
    private int storeNum;
    private AccountType type;
    private Yon isActive;

}

